from django.urls import path, re_path
from .views import *

app_name = 'goods'

urlpatterns = [
    # 商品列表页
    path('list/<int:category_id>/<int:page_num>/', ListView.as_view(), name='list'),
    # 商品详情
    re_path('detail/(?P<sku_id>\d+)/', DetailView.as_view(), name='detail'),
    # 热销排行
    path('hot/<int:category_id>/', HostGoodsView.as_view(), name='hot'),

]
